#!/usr/bin/env bash

if [ -f linux* ]; then
	echo "################################################"
	echo "Stopping the script!!"
	echo "Wait for the kernel update script to quit."
	echo "################################################"
	exit 0
fi

# Checking if I have the latest files from Notabug
git pull

#Below command will backup everything inside the project folder
git add --all

echo "###################################"
echo "Write your commit comment!"
echo "###################################"

read input

curtime=$(date)
#git commit -m "$input on $curtime"
git commit -m "$input"

# Push the local snapshot to a remote destination
git push -u origin master


